﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WebRequestToolsSample
{
    public partial class Form9 : Form
    {
        public Form9()
        {
            InitializeComponent();
        }

        private void Form9_Load(object sender, EventArgs e)
        {
            string str = @"
                            dir
                            #md c:\testedir
                            rd c:\testedir";

            AutomationTools.ProcedimentoController controller = new AutomationTools.ProcedimentoController(
                new AutomationTools.Procedimentos.SimulacaoUso.Aplicativo.ExecutarBatchCommands(str),
                new AutomationTools.Procedimentos.Acao.EMail.EnviarEmail("leonardo.sivelli@bcsul.com.br", "Teste", new AutomationTools.Procedimentos.Acao.EMail.EnviarEmailConfiguracao("smtp.bcsul.com.br", "bcsul\\leonardo.sivelli", "Leozinhu0*", "leonardo.sivelli@bcsul.com.br", "Sistema de Monitoramento"))
                );

            var ret = controller.ExecutarProcedimentos();
            label1.Text = ret.ToString();
        }
    }
}
